package cn.com.cifi.mars.common.enums;

/**
 * @author plx
 */
public enum PriceReportGroupCodeEnum {
    /**
     * 全盘动态-总货值
     */
    DYNAMIC_TOTAL_PRICE("dynamic_total_price","全盘动态-总货值"),
    DYNAMIC_SALE_PRICE("dynamic_sale_price","全盘动态-已售货值"),
    DYNAMIC_STOCK_PRICE("dynamic_stock_price","全盘动态-存货货值"),
    DYNAMIC_PLAN_PRICE("dynamic_plan_price","全盘动态-规划货值"),
    DYNAMIC_UN_SEND_PRICE("dynamic_un_send_price","全盘动态-未推售车位货值"),
    DYNAMIC_RIGHT_PRICE("dynamic_right_price","全盘动态-权益货值"),

    LAND_INVEST_PRICE("land_invest_price","土储-投资口径-货值"),
    LAND_HK_PRICE("land_hk_price","土储-香港口径-货值"),

    UN_START_PRICE("un_start_price","未开工-货值"),

    UN_REACH_PRICE("un_reach_price","在途-已开工未达形象进度-货值"),
    UN_GET_CARD_PRICE("un_get_card_price","在途-已达形象进度未取证-货值"),
    ON_WAY_PRICE("on_way_price","在途-合计-货值"),

    STOCK_90_PRICE("stock_90_price","库存-90天内-货值"),
    STOCK_90_180_PRICE("stock_90_180_price","库存-90天~180天-货值"),
    STOCK_180_360_PRICE("stock_180_360_price","库存-180天~360天-货值"),
    STOCK_360_720_PRICE("stock_360_720_price","库存-360天~720天-货值"),
    STOCK_720_PRICE("stock_720_price","库存-720天以上-货值"),
    STOCK_180_PRICE("stock_180_price","库存-180天以上-货值"),
    STOCK_EXIST_ROOM_PRICE("stock_exist_room_price","库存-现房-货值"),

    ;

    private String code;

    private String name;

    PriceReportGroupCodeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String toFormatString(String ele){
            return code.concat("=>").concat(ele);
    }

    public String toDateFormatString(String date,String ele){
            return code.replace("yyyy_mm",date).concat("=>").concat(ele);
    }
}
